/* 地理位置页面专用样式 */
.geo-container {
    padding: 20px;
}

.geo-overview, .geo-features, .geo-climate, .geo-query {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.geo-container h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CCFF66;
}

.geo-container p {
    color: #f0f0f0;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 地图样式 */
.geo-map {
    margin: 20px auto;
    max-width: 800px;
}

.geo-map img {
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.geo-map img:hover {
    transform: scale(1.02);
}

.geo-map figcaption {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* 地形特征网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 36px;
    color: #CCFF66;
    margin-bottom: 15px;
}

.feature-card h5 {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

/* 气候数据样式 */
.climate-data {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.climate-item {
    background: linear-gradient(135deg, rgba(13, 50, 33, 0.8), rgba(21, 74, 51, 0.8));
    padding: 15px 20px;
    border-radius: 8px;
    margin: 10px;
    min-width: 150px;
    text-align: center;
}

.climate-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 5px;
}

.climate-value {
    color: #CCFF66;
    font-size: 18px;
    font-weight: bold;
}

/* 查询区域样式 */
.geo-query {
    background-color: rgba(13, 50, 33, 0.3);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group label {
    color: white;
    display: flex;
    align-items: center;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .climate-data {
        flex-direction: column;
        align-items: center;
    }
    
    .geo-overview, .geo-features, .geo-climate, .geo-query {
        padding: 15px;
    }
}

/* 选择器应用 */
/* 后代选择器 */
.geo-query .form-group {
    margin-bottom: 15px;
}

/* 伪类选择器 */
.feature-card:nth-child(odd) {
    border-left: 3px solid #CCFF66;
}

.feature-card:nth-child(even) {
    border-left: 3px solid #c8805a;
}

/* 伪元素选择器 */
.geo-climate::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, #CCFF66, transparent);
    margin-top: 20px;
}

/* 属性选择器 */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}